3af9ebbb5c3ae9e0ff8b7b963185ce03836ba0fa,subprojects/gradle-scala/src/main/groovy/org/gradle/api/tasks/scala/ScalaCompile.java,ScalaCompile,compile,#,69
Before Change
FileTree javaSource = getJavaSrc();
List<File> classpath = GUtil.addLists(Collections.singleton(getDestinationDir()), getClasspath());
javaSource.stopExecutionIfEmpty();
antCompile.execute(javaSource, getDestinationDir(), getDependencyCacheDir(), classpath,
getSourceCompatibility(), getTargetCompatibility(), getOptions(), getAnt());
}
}
After Change
scalaCompiler.execute();
FileTree javaSource = getJavaSrc();
List<File> classpath = GUtil.addLists(Collections.singleton(getDestinationDir()), getClasspath());
javaSource.stopExecutionIfEmpty();
JavaCompiler javaCompiler = getJavaCompiler();
javaCompiler.setSource(javaSource);
javaCompiler.setDestinationDir(getDestinationDir());
javaCompiler.setDependencyCacheDir(getDependencyCacheDir());
javaCompiler.setClasspath(classpath);
javaCompiler.setSourceCompatibility(getSourceCompatibility());